﻿//Copyright 2011 - Jonathan Allen

using System;
using System.Collections.Generic;
using System.Linq;

namespace Granite.Metadata
{
	///// <summary>
	///// This attribute is used to map properties to actions such as service and procedure calls.
	///// </summary>
	//[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
	//sealed public class ActionAttribute : Attribute
	//{

	//	readonly string m_ActionName;
	//	readonly string m_ParameterName;

	//	/// <summary>
	//	/// 
	//	/// </summary>
	//	/// <param name="actionName">Name of the action being mapped</param>
	//	public ActionAttribute(string actionName)
	//		: this(actionName, null)
	//	{
	//	}

 //       /// <summary>
	//	/// 
	//	/// </summary>
	//	/// <param name="actionName">Name of the action being mapped</param>
	//	/// <param name="parameterName">Parameter name in service call. If null, libraries will use the property name</param>
	//	public ActionAttribute(string actionName, string parameterName)
	//	{
	//		m_ActionName = actionName;
 //           m_ParameterName = parameterName;
	//	}


	//	/// <summary>
	//	/// Name of the action being mapped
	//	/// </summary>
	//	public string ActionName
	//	{
	//		get { return m_ActionName; }
	//	}

	//	/// <summary>
	//	/// Used to override the parameter name
	//	/// </summary>
	//	public string ParameterName
	//	{
	//		get { return m_ParameterName; }
	//	}
	//}
}
